/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Fri.Form;

import java.awt.CardLayout;

/**
 *
 * @author wikib_000
 */
public class CodingPayment extends javax.swing.JFrame {

    /**
     * Creates new form CodingPayment
     */
    public CodingPayment() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        leftPanel = new javax.swing.JPanel();
        buttonGetCode = new javax.swing.JButton();
        jLabel2 = new javax.swing.JLabel();
        buttonApplyCode = new javax.swing.JButton();
        buttonHistory = new javax.swing.JButton();
        buttonCodes = new javax.swing.JButton();
        buttonUserSearch = new javax.swing.JButton();
        buttonExchange = new javax.swing.JButton();
        holderPanel = new javax.swing.JPanel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setBackground(new java.awt.Color(204, 204, 204));

        leftPanel.setBackground(new java.awt.Color(204, 204, 204));

        buttonGetCode.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        buttonGetCode.setText("Get Code");
        buttonGetCode.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                buttonGetCodeMouseClicked(evt);
            }
        });
        buttonGetCode.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buttonGetCodeActionPerformed(evt);
            }
        });

        jLabel2.setBackground(new java.awt.Color(102, 0, 102));
        jLabel2.setFont(new java.awt.Font("Tahoma", 0, 36)); // NOI18N
        jLabel2.setText("Fri");

        buttonApplyCode.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        buttonApplyCode.setText("Apply Code");
        buttonApplyCode.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                buttonApplyCodeMouseClicked(evt);
            }
        });

        buttonHistory.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        buttonHistory.setText("History");
        buttonHistory.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                buttonHistoryMouseClicked(evt);
            }
        });
        buttonHistory.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buttonHistoryActionPerformed(evt);
            }
        });

        buttonCodes.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        buttonCodes.setText("Codes");
        buttonCodes.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                buttonCodesMouseClicked(evt);
            }
        });
        buttonCodes.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buttonCodesActionPerformed(evt);
            }
        });

        buttonUserSearch.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        buttonUserSearch.setText("Search User");
        buttonUserSearch.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                buttonUserSearchMouseClicked(evt);
            }
        });
        buttonUserSearch.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buttonUserSearchActionPerformed(evt);
            }
        });

        buttonExchange.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        buttonExchange.setText("Exchanged");
        buttonExchange.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                buttonExchangeMouseClicked(evt);
            }
        });
        buttonExchange.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buttonExchangeActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout leftPanelLayout = new javax.swing.GroupLayout(leftPanel);
        leftPanel.setLayout(leftPanelLayout);
        leftPanelLayout.setHorizontalGroup(
            leftPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(leftPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(leftPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(buttonGetCode, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(buttonApplyCode, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(buttonHistory, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(buttonCodes, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(buttonUserSearch, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 197, Short.MAX_VALUE)
                    .addComponent(buttonExchange, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        leftPanelLayout.setVerticalGroup(
            leftPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(leftPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(buttonGetCode, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(buttonApplyCode, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(buttonHistory, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(buttonCodes, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(buttonUserSearch, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(buttonExchange, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(126, Short.MAX_VALUE))
        );

        holderPanel.setLayout(new java.awt.CardLayout());

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(leftPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(holderPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 540, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(leftPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(holderPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void buttonGetCodeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonGetCodeActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_buttonGetCodeActionPerformed

    private void buttonHistoryActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonHistoryActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_buttonHistoryActionPerformed

    private void buttonCodesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonCodesActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_buttonCodesActionPerformed

    private void buttonUserSearchActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonUserSearchActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_buttonUserSearchActionPerformed

    private void buttonExchangeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonExchangeActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_buttonExchangeActionPerformed

    private void buttonGetCodeMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonGetCodeMouseClicked
        // TODO add your handling code here:
        CardLayout layout=(CardLayout) holderPanel.getLayout();
        layout.show(holderPanel, "GetCodePanel");
    }//GEN-LAST:event_buttonGetCodeMouseClicked

    private void buttonApplyCodeMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonApplyCodeMouseClicked
        // TODO add your handling code here:
        CardLayout layout=(CardLayout) holderPanel.getLayout();
        layout.show(holderPanel, "ApplyCodePanel");
    }//GEN-LAST:event_buttonApplyCodeMouseClicked

    private void buttonHistoryMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonHistoryMouseClicked
        // TODO add your handling code here:
        CardLayout layout=(CardLayout) holderPanel.getLayout();
        layout.show(holderPanel, "HistoryPanel");
    }//GEN-LAST:event_buttonHistoryMouseClicked

    private void buttonCodesMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonCodesMouseClicked
        // TODO add your handling code here:
        CardLayout layout=(CardLayout) holderPanel.getLayout();
        layout.show(holderPanel, "CodePanel");
    }//GEN-LAST:event_buttonCodesMouseClicked

    private void buttonUserSearchMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonUserSearchMouseClicked
        // TODO add your handling code here:
    }//GEN-LAST:event_buttonUserSearchMouseClicked

    private void buttonExchangeMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonExchangeMouseClicked
        // TODO add your handling code here:
    }//GEN-LAST:event_buttonExchangeMouseClicked

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(CodingPayment.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(CodingPayment.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(CodingPayment.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(CodingPayment.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new CodingPayment().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton buttonApplyCode;
    private javax.swing.JButton buttonCodes;
    private javax.swing.JButton buttonExchange;
    private javax.swing.JButton buttonGetCode;
    private javax.swing.JButton buttonHistory;
    private javax.swing.JButton buttonUserSearch;
    private javax.swing.JPanel holderPanel;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JPanel leftPanel;
    // End of variables declaration//GEN-END:variables
}
